<?php
/**
 * @name		News Config Module
 * @author		C. Hazekamp
 * @copyright	C. Hazekamp
 * @version     2.0.0
 * @date   		28-11-2011 2:57:15
 * @access		private
 * @filesource	/modules/news/default.php
 * @package     ObbyCMS 2.0
 */
 
if (!defined('PUBLIC_HTML'))
{
	exit;
}

try
{
	foreach ($db->sql_get(TABLE_NEWS) as $row_news)
	{
		$row_cat = $db->sql_get_row(TABLE_NEWS_CATEGORIES, '*', array(
			'cat_group_id'	=> $row_news['news_category'],
			'cat_language'	=> $language->current()
		));
		
		$tpl->zone('news', array(
			'TITLE'		=> $row_news['news_title'],
			'CATEGORY'	=> $row_cat['cat_title'],
			'VIEWS'		=> '0',
			'REPLIES'	=> '0',
			'READ'		=> '',
			'EDIT'		=> '',
			'DELETE'	=> ''
		));
	}
} catch (ErrorHandler $e)
{
	$e->print_error('Yeah');
}

?>